package com.edu.system.domain;

import javax.validation.constraints.NotBlank;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.common.annotation.Excel;
import com.edu.common.core.domain.BaseEntity;

/**
 * 教室对象 t_classroom
 *
 * @author xxxx
 * @date 2023-12-28
 */

@Data
public class TClassroom extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键 自增
     */
    private Long id;

    /**
     * name
     */
    @Excel(name = "name")
    @NotBlank(message = "教室名称不能为空")
    private String name;

    /**
     * 编码
     */
    @Excel(name = "编码")
    private String code;

    /**
     * 班级名称
     */
    @Excel(name = "班级名称")
    private String className;

    /**
     * 位置
     */
    @Excel(name = "位置")
    private String location;

    /**
     * 容量
     */
    @Excel(name = "容量")
    private Long capacity;

    /**
     * 状态
     */
    @Excel(name = "状态 0启用 1禁用")
    private Integer status;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("code", getCode())
                .append("className", getClassName())
                .append("location", getLocation())
                .append("capacity", getCapacity())
                .append("status", getStatus())
                .toString();
    }
}
